package cn.com.sise.service.impl;

import cn.com.sise.dao.SummaryDao;
import cn.com.sise.pojo.Summary;
import cn.com.sise.service.SummaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SummaryServiceImpl implements SummaryService {
    private SummaryDao summaryDao;

    @Autowired
    public void setSummaryDao(SummaryDao summaryDao) {
        this.summaryDao = summaryDao;
    }

    public int insertSummary(Summary summary) {
        return summaryDao.insertSummary(summary);
    }

    public int deleteSummary(Summary summary) {
        return summaryDao.deleteSummary(summary);
    }

    public int updateASummary(Summary summary) {
        return summaryDao.updateASummary(summary);
    }

    public List<Summary> selectSummary(int summaryId) {
        return summaryDao.selectSummary(summaryId);
    }
}
